home *** CD-ROM | disk | FTP | other *** search
- on initAnnotations firstSprite, numAnnot
- global FirstAnnot, AnnotList, NumAnnotations
- set AnnotList to []
- set NumAnnotations to numAnnot
- set FirstAnnot to firstSprite
- if NumAnnotations > 0 then
- repeat with i = 0 to NumAnnotations - 1
- set the visible of sprite (FirstAnnot + i) to 0
- updateStage()
- setAt(AnnotList, i + 1, 0)
- end repeat
- end if
- end
-
- on startAnnotTimer
- startTimer()
- end
-
- on setAppearTime annot, ticks
- setAt(AnnotList, annot, ticks)
- end
-
- on checkAppear
- global FirstAnnot, AnnotList, NumAnnotations
- if NumAnnotations > 0 then
- repeat with i = 1 to NumAnnotations
- set test to getAt(AnnotList, i)
- if the timer > test then
- set the visible of sprite (FirstAnnot + i - 1) to 1
- updateStage()
- end if
- end repeat
- end if
- end
-
- on clearAnnotations
- global FirstAnnot, AnnotList, NumAnnotations
- if NumAnnotations > 0 then
- repeat with i = 0 to NumAnnotations - 1
- set the visible of sprite (FirstAnnot + i) to 1
- updateStage()
- end repeat
- end if
- set AnnotList to []
- end
-